﻿using UnityEngine;
using XLua;

namespace Yoozoo.Gameplay.RTS.Proto
{
    [GCOptimize]
    [LuaCallCSharp]
    public struct TroopMarchL2
    {
        public int marchTypeInt;
        //public TroopsSoldier[] soldierList;
        public int rage;
        public int killTimes;
        public double garrisonAngle;
        public string scoutName;
        public bool isAssemblyLeader;

        public long assemblyId;

        public int collectSpeed;//采集速度

        
        // Lua层计算/查表得到
        public int soldierCount;
        public int initSoldierCount;
        public int attackTargetUnitType;
        public long attackTargetBuildingId;
        public int soldierType;
        public int attRange;
        public bool isMultiSoldierType;
        public int soldierListLength;
        
        public bool isFightConditionNotMet;
        
        public int rageHeroIndex;

        public string LogoBgColor;
        public string LogoBg;
        public string LogoColor;
        public string Logo;
        
        public string roleTitle;
        public int marchSkinResId;
        
        public long leavePveAssemblyId;
        
        [BlackList]
        public MarchType MarchType
        {
            get {
                return (MarchType)marchTypeInt; 
            }
        }
    }
}
